package com.meihua.shellapp.activity;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;

import com.meihua.shellapp.R;
import com.meihua.shellapp.base.BaseWebViewActivity;
import com.meihua.shellapp.utils.URL;

import butterknife.Bind;
import butterknife.OnClick;



/**
 * 常见问题界面
 */
public class CommonProblemActivity extends BaseWebViewActivity {

    @Bind(R.id.tv_title)
    TextView tvTitle;
    @Bind(R.id.common_problem_webview)
    WebView webview;
    @Bind(R.id.iv_top_left)
    ImageView mIVTopLeft;
    @Bind(R.id.loading)
    ProgressBar mLoading;

    /*设置布局ID*/
    @Override
    public int getLayoutId() {
        return R.layout.activity_common_problem;
    }

    /*初始化VIew*/
    @Override
    public void initView(Bundle savedInstanceState) {
        tvTitle.setVisibility(View.VISIBLE);
        tvTitle.setText("常见问题");
        mIVTopLeft.setVisibility(View.VISIBLE);
        initWebView(webview, mLoading, URL.getUrl().COMMENPROBLEM, tvTitle);
    }

    @OnClick(R.id.iv_top_left)
    public void onViewClicked() {
        finish();
    }
}
